.editorContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.editorToolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--bg);
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  z-index: 10;
}

.toolbarLeft, .toolbarRight {
  display: flex;
  align-items: center;
}

.autoCompileToggle {
  display: flex;
  align-items: center;
  margin-right: 16px;
  cursor: default;
  user-select: none;
  
  .active {
    color: #1677ff;
  }
}

.compileSwitch {
  margin: 0 8px;
}

.toggleLabel {
  font-size: 13px;
  color: var(--text);
}

/* Socket连接状态指示器样式 */
.socketIndicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 16px;
  transition: background-color 0.3s ease;
  cursor: default;
  
  &.connected {
    background-color: #52c41a; // 绿色
    box-shadow: 0 0 5px rgba(82, 196, 26, 0.5);
  }
  
  &.disconnected {
    background-color: #f5222d; // 红色
    box-shadow: 0 0 5px rgba(245, 34, 45, 0.5);
  }
}

.needsCompile {
  position: relative;
  animation: pulse 1.5s infinite;
  
  &::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background-color: #1677ff;
    border-radius: 50%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 119, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(22, 119, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 119, 255, 0);
  }
}

// 亮色主题样式调整
:global(.light) {
  .editorToolbar {
    background-color: #f8f8f8;
  }
} 